package edu.spsu.library;

public class RDFItem {

	private String _link = null;
	private String _title = null;
	private String _subTitle = null;
	private String _namePart = null;
	private String _genre = null;
	private String _publisher = null;
	private String _dateIssued = null;
	private String _topic = null;
	private String _classification = null;
	private String _2ndclassification = null;

	public void setLink(String l)
	{
		_link = l;
	}
	
	public String getLink()
	{
		return _link;
	}

	public String getTitle() {
		return _title;
	}
	
	public void setTitle(String _title) {
		this._title = _title;
	}
	
	public String get_subTitle() {
		return _subTitle;
	}
	
	public void set_subTitle(String _subTitle) {
		this._subTitle = _subTitle;
	}
	
	public String get_namePart() {
		return _namePart;
	}
	public void set_namePart(String _namePart) {
		this._namePart = _namePart;
	}
	public String get_genre() {
		return _genre;
	}
	public void set_genre(String _genre) {
		this._genre = _genre;
	}
	public String get_publisher() {
		return _publisher;
	}
	public void set_publisher(String _publisher) {
		this._publisher = _publisher;
	}
	public String get_dateIssued() {
		return _dateIssued;
	}
	public void set_dateIssued(String _dateIssued) {
		this._dateIssued = _dateIssued;
	}
	public String get_topic() {
		return _topic;
	}

	public void set_2ndclassification(String _classification) {
		this._2ndclassification = _classification;
	}
	public String get_2ndclassification(String _topic) {
		return _2ndclassification;
	}
	
	public void set_topic(String _topic) {
		this._topic = _topic;
	}
	public String get_classification() {
		return _classification;
	}
	public void set_classification(String _classification) {
		this._classification = _classification;
	}

	public String toString()
	{
		// limit how much text we display
		if (_title.length() > 42)
		{
			return _title.substring(0, 42) + "...";
		}
		return _title;
	}
	/*
	 <?xml version="1.0" encoding="UTF-8"?>
	 <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.loc.gov/mods/v3">
	  <rdf:Description rdf:about="http://www.w3.org/TR/rdf-syntax-grammar">
	    <mods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="3.2" xsi:schemaLocation="http://www.loc.gov/mods/v3 http://www.loc.gov/standards/mods/v3/mods-3-2.xsd">
	      <titleInfo>
	        <title>Testing IT</title>
	        <subTitle>an off-the-shelf software testing process</subTitle>
	      </titleInfo>
	      <name type="personal">
	        <namePart>Watkins, John (John Edward)</namePart>
	        <role>
	          <roleTerm authority="marcrelator" type="text">creator</roleTerm>
	        </role>
	      </name>
	      <typeOfResource>text</typeOfResource>
	      <genre authority="marcgt">bibliography</genre>
	      <originInfo>
	        <place>
	          <placeTerm type="code" authority="marccountry">enk</placeTerm>
	        </place>
	        <place>
	          <placeTerm type="text">Cambridge</placeTerm>
	        </place>
	        <place>
	          <placeTerm type="text">New York</placeTerm>x
	        </place>
	        <publisher>Cambridge University Press</publisher>
	        <dateIssued>2001</dateIssued>
	        <issuance>monographic</issuance>
	      </originInfo>
	      <language>
	        <languageTerm authority="iso639-2b" type="code">eng</languageTerm>
	      </language>
	      <physicalDescription>
	        <form authority="marcform">print</form>
	        <extent>xv, 315 p. : ill. ; 28 cm.</extent>
	      </physicalDescription>
	      <note type="statement of responsibility">John Watkins.</note>
	      <note>Includes bibliographical references (p. 295-296) and index.</note>
	      <subject authority="lcsh">
	        <topic>Computer software</topic>
	        <topic>Testing</topic>
	      </subject>
	      <classification authority="lcc">QA76.76.T48 W38 2001</classification>
	      <classification authority="ddc" edition="21">005.1/4</classification>
	      <identifier type="isbn">052179546X (paperback)</identifier>
	      <identifier type="lccn">00065143</identifier>
	      <recordInfo>
	        <recordContentSource authority="marcorg">DLC</recordContentSource>
	        <recordCreationDate encoding="marc">001108</recordCreationDate>
	        <recordChangeDate encoding="iso8601">20020629075529.0</recordChangeDate>
	        <recordIdentifier>108498</recordIdentifier>
	      </recordInfo>
	    </mods>
	  </rdf:Description>
	</rdf:RDF>
	 */
}
